import { axios } from '@/utils/request'

/**
 * 查询学期
 *
 * @author levin
 * @date 2022-07-05 16:49:16
 */
export function sysSchoolTermPage (parameter) {
  return axios({
    url: '/sysSchoolTerm/page',
    method: 'post',
    data: parameter
  })
}

/**
 * 学期列表
 *
 * @author levin
 * @date 2022-07-05 16:49:16
 */
export function sysSchoolTermList (parameter) {
  return axios({
    url: '/sysSchoolTerm/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加学期
 *
 * @author levin
 * @date 2022-07-05 16:49:16
 */
export function sysSchoolTermAdd (parameter) {
  return axios({
    url: '/sysSchoolTerm/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑学期
 *
 * @author levin
 * @date 2022-07-05 16:49:16
 */
export function sysSchoolTermEdit (parameter) {
  return axios({
    url: '/sysSchoolTerm/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除学期
 *
 * @author levin
 * @date 2022-07-05 16:49:16
 */
export function sysSchoolTermDelete (parameter) {
  return axios({
    url: '/sysSchoolTerm/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出学期
 *
 * @author levin
 * @date 2022-07-05 16:49:16
 */
export function sysSchoolTermExport (parameter) {
  return axios({
    url: '/sysSchoolTerm/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}
